<%@page import="cdp.Cliente"%>
<%@page import="cdp.Marca"%>
<%@page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>loja virtual</title>
        <link rel="stylesheet" type="text/css" href="css/admin/main.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="css/admin/print.css" media="print" />
        <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
        <script type="text/javascript" src="js/admin/common.js"></script>        
    </head>
    <body id="type-b">    
        <%

            String usuario = (String) session.getAttribute("usuario");
            Cliente cliente = null;
            if (usuario != null) {
                cliente = (Cliente) session.getAttribute("cliente");
            }
            if (request.getParameter("mensagem") != null) {
                out.print("<script>alert(\"" + request.getParameter("mensagem") + "\");</script>");
            }
            if (session.getAttribute("mensagem") != null) {
                out.print("<script>alert(\"" + session.getAttribute("mensagem") + "\");</script>");
                session.removeAttribute("mensagem");
            }
        %>
        <div id="wrap">            
            <div id="header">
                <div style="float: right;margin-right: 10px;font-size: 20px;color:whitesmoke;font-weight: bold">
                    <%
                        if (usuario != null) {
                            out.print("<a href=\"Site?evento=logout\" style=\"text-decoration:none;color:blue;\">Sair</a>");
                        } else {
                            out.print("<a href=\"Site?evento=login\" style=\"text-decoration:none;color:blue;\">Login</a>");
                        }
                    %>

                </div>
                <div id="site-name">loja virtual</div>
            </div>
            <%
                List<Marca> listaMarcas = (List<Marca>) request.getAttribute("listaMarcas");
            %>
            <div id="content-wrap">
                <div id="utility">
                    <ul id="nav-secondary">                 
                        <li class="link">
                            <a href="Site?evento=visualizar_carrinho">Visualizar Carrinho</a>                                                    
                        </li>
                        <li class="link">
                            <a href="loginAdmin.jsp">Administrar Site</a>                            
                        </li>
                    </ul>
                </div>
